#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  walk.py
#       Author @  Huoty
#  Create date @  2015-06-28 14:44:50
#  Description @  
# *************************************************************

import os

# Script starts from here

cnt = 0
for path, dirlist, filelist in os.walk("/home/huoty/mcwd/kswd/"):
    '''
    print path
    print "------  split ------", cnt
    print d
    print "------ split -------", cnt 
    print filelist
    print "8888888888888888888888888888888888888888888888"
    cnt += 1
    if cnt == 2:
        break
    '''
    for dirname in dirlist:
        print os.path.join(path, dirname)
    for filename in filelist:
        print os.path.join(path, filename)
